/*
 *  SableJBDD, a Java Binary Decision Diagram package.
 *  Copyright (C) 2003  Feng Qian
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
//$Id: JBddConstants.java,v 1.9 2004/03/12 00:15:12 fqian Exp $

package SableJBDD.bdd;
/**
 * Constants used by JBDD.
 * 
 * @author Feng Qian
 */

public interface JBddConstants {

  // the maximum order of a variable
  public final static int MAX_LEVEL=Integer.MAX_VALUE;

  // cache associativity
  public final static int IDEAL  = 0;
  public final static int ONEWAY = 1;
  public final static int TWOWAY = 2;
  public final static int FOURWAY = 4;

  // invalid bdd op
  public final static int BDDOP_INVALID = -1;

  // options for cache and unique table
  public final static int NO_CACHE    = 0;
  public final static int REGULAR_REF = 1;
  public final static int SOFT_REF    = 2;
  public final static int WEAK_REF    = 3;
  public final static int PHANTOM_REF = 4;  
    // different object pooling strategies when using weak reference
    public final static int NO_POOLING      = 0;
    public final static int PRE_ALLOCATION  = 1;
    public final static int FIXED_SIZE      = 2;
    public final static int EXPANDIBLE      = 3;
    public final static int DYNAMIC         = 4;

    public final static int DEFAULT_PRE_ALLOC_SIZE    = 6000000; // 5M
    public final static int DEFAULT_FIXED_POOL_SIZE   = 1000000; // 1M
    public final static int DEFAULT_EXPANDIBLE_SIZE   =  500000; // 
    public final static int DEFAULT_DYNA_POOL_SIZE    = 1000000; // 
    public final static int DEFAULT_PHANTOM_POOL_SIZE =  500000;
}
